package com.abner.design.patterns.proxy.staticproxy;

/**
 * 代理类
 * @author abner
 */
public class TeacherDaoProxy implements ITeacherDao{
	
	private ITeacherDao target;

	public TeacherDaoProxy(ITeacherDao target) {
		this.target = target;
	}

	/**
	 * 讲课
	 */
	@Override
	public void teach() {
		System.out.println("开始代理 完成某些操作----");
		target.teach();
	}

}
